Skip to main content

Slopes of Lines and Curves

The Slope of a Line

Linear functions produce straight-line graphs. In general, a straight line follows the following equation:

y=a+bxy = a + bx

where aa and bb are fixed numbers.

The line on the graph is the set of points:

[(x,y):x,yR,y=a+bx]\left[ (x,y): x,y \in \mathbb{R}, y = a+bx \right]

Fig. 22

Details

The slope of a straight line represents the change in the yy coordinate corresponding to a unit change in the xx coordinate.

Segment Slopes

Let's assume we have a more general function y=f(x)y = f(x). To find the slope of a line segment, consider two xx -coordinates (x0x_0 and x1x_1), and look at the slope between (x0,f(x0))(x_0, f(x_0)) and (x1,f(x1))(x_1, f(x_1)).

Fig. 23

Details

Consider two points, (x0,y0)(x_0,y_0) and (x1,y1)(x_1,y_1). The slope of the straight line that goes through these points is

y1y0x1x0\displaystyle\frac {y_1 - y_0} {x_1 - x_0}

Thus, the slope of a line segment passing through the points (x0,f(x0))(x_0,f(x_0)) and (x1,f(x1))(x_1,f(x_1)), for some function, ff, is

f(x1)f(x0)x1x0\displaystyle\frac {f(x_1) - f(x_0)} {x_1 - x_0}

If we let x1=x0+hx_1 = x_0 + h then the slope of the segment is

f(x0+h)f(x0)h\displaystyle\frac {f(x_0+h) - f(x_0)} {h}

The Slope of y=x2y=x^2

Consider the task of computing the slope of the function y=x2y=x^2 at a given point.

Fig. 24

Examples

Consider the function y=f(x)=x2y = f(x) = x^2. In order to find the slope at a given point (x0)(x_0 ), we look at

y=f(x0+h)f(x0)hy = \displaystyle\frac{f (x_0 +h) - f(x_0)} {h}

for small values of hh.

For this particular function, f(x)=x2f (x) = x^2, and hence

f(x0+h)=(x0+h)2=x2+2hx0+h2f (x_0 +h) = (x_0 +h) ^2 = x^2 + 2hx_0 + h^2

The slope of a line segment is therefore given by

f(x0+h)f(x0)h=2hx0+h2h=2x0+h\displaystyle\frac{f (x_0 +h) - f(x_0)} {h}= \displaystyle\frac{2hx_0 + h^2} {h} = 2x_0 + h

As we make hh steadily smaller, the segment slope, 2x0+h2x_0 + h, tends towards 2x02x_0. It follows that the slope, yy', of the curve at a general point xx is given by y=2xy' = 2x.

The Tangent to a Curve

A tangent to a curve is a line that intersects the curve at exactly one point. The slope of a tangent for the function y=f(x)y=f(x) at the point (x0,f(x0))(x_0,f(x_0)) is

limh0f(x0+h)f(x0)h\lim_{h\to0}\displaystyle\frac{f(x_0+h)-f(x_0)}{h}

Fig. 25

Details

To find the slope of the tangent to a curve at a point, we look at the slope of a line segment between the points (x0,f(x0))(x_0,f(x_0)) and (x0+h,f(x0+h))(x_0+h,f(x_0+h)), which is

f(x0+h)f(x0)h\displaystyle\frac{f(x_0+h)-f(x_0)}{h}

and then we take hh to be closer and closer to 00. Thus the slope is

limh0f(x0+h)f(x0)h\lim_{h\to0}\displaystyle\frac{f(x_0+h)-f(x_0)}{h}

when this limit exists.

Examples

Example

We wish to find the tangent line for the function f(x)=x2f(x)=x^2 at the point (1,1)(1,1). First we need to find the slope of this tangent, it is given as

limh0(1+h)212h=limh02h+h2h=limh0(2+h)=2\lim_{h\to0}\displaystyle\frac{(1+h)^2-1^2}{h}=\lim_{h\to0}\displaystyle\frac{2h+h^2}{h}=\lim_{h\to0}(2+h)=2

Then, since we know the tangent goes through the point (1,1)(1,1) the line is y=2x1y=2x-1.

The Slope of a General Curve

Fig. 26

Details

Imagine a nonlinear function whose graph is a curve described by the equation y=f(x)y = f(x). Here we want to find the slope of a line tangent to the curve at a specific point (x0)(x_0). The slope of the line segment is given by the equation f(x0+h)f(x0)h\displaystyle\frac{f (x_0 +h) - f(x_0)} {h}. Reducing hh towards zero, gives the slope of this curve if it exists.